package com.bailian.spring.ioc.properties_04.properties_01;


import com.bailian.spring.ioc.properties_04.properties_01.bean.JdbcProperties;
import com.bailian.spring.ioc.properties_04.properties_01.config.JdbcPropertiesConfiguration;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author gaoxu
 * date: Created on 2021/11/4 上午11:31
 */
public class PropertySourcePropertiesApplication {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext ctx =
                new AnnotationConfigApplicationContext(JdbcPropertiesConfiguration.class);
        System.out.println(ctx.getBean(JdbcProperties.class).toString());
    }
}
